simple:
use stak[0][0] here! :)
Edit: reply to citizen's post.
Printable View
simple:
use stak[0][0] here! :)
Edit: reply to citizen's post.
Except that no one was even talking about pointers to pointers before except you.Quote:
You cannot dereference a pointer more than once, of course. Duh. It works if it's a pointer to pointer.
T'was an example. Duh.
(*stak)[2] would assume it was a pointer to pointer in the first place or wouldn't work at all.
The correct way is stak[2] simply.
> T'was an example. Duh.
'Twas still completely wrong, hurr.
> (*stak)[2] would assume it was a pointer to pointer in the first place or wouldn't work at all.
> The correct way is stak[2] simply.
Oh? I don't think so.
(*stack)[2]
Evaluate:
1. Dereference a pointer to type array.
2. Call array:: operator []
Pointers to pointers is not pertinent to the discussion at all.
I wasn't thinking of the operator call. So whatever.